package org.example.service.impl;


import org.example.mapper.DisableMapper;
import org.example.service.IDisableService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DisableServiceImpl implements IDisableService {

    private DisableMapper disableMapper;

    public DisableServiceImpl(DisableMapper disableMapper) {
        this.disableMapper = disableMapper;
    }

    @Override
    @Transactional
    public int disableUser(Integer user_id,Integer user_status) {

        int i = disableMapper.disableUser(user_id, user_status);
        return i;
    }
}
